Skip to content

Ignore less tests in debug builds #121531

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Feb 24, 2024
Merged

Conversation

saethlin
Copy link
Member

@saethlin saethlin commented Feb 23, 2024

Since #120594 and #120863, nearly all UB-detecting debug assertions get compiled out of code that is monomorphized by a crate built with debug assertions disabled.

Which means that if we default all our codegen tests to -Cdebug-assertions=no, most of them work just fine against a sysroot built with debug assertions.

I also tried to explain a bit better why some tests need to be skipped, for those that still need to be skipped.

@rustbot
Copy link
Collaborator

rustbot commented Feb 23, 2024

r? @compiler-errors

rustbot has assigned @compiler-errors.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Feb 23, 2024
@compiler-errors
Copy link
Member

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Feb 24, 2024

📌 Commit 2f3c0b9 has been approved by compiler-errors

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Feb 24, 2024

🌲 The tree is currently closed for pull requests below priority 50. This pull request will be tested once the tree is reopened.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Feb 24, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 24, 2024
…iaskrgr

Rollup of 7 pull requests

Successful merges:

 - rust-lang#121435 (Account for RPITIT in E0310 explicit lifetime constraint suggestion)
 - rust-lang#121490 (Rustdoc: include crate name in links for local primitives)
 - rust-lang#121520 (delay cloning of iterator items)
 - rust-lang#121522 (check that simd_insert/extract indices are in-bounds)
 - rust-lang#121531 (Ignore less tests in debug builds)
 - rust-lang#121539 (compiler/rustc_target/src/spec/base/apple/tests.rs: Avoid unnecessary large move)
 - rust-lang#121542 (update stdarch)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit d978a1c into rust-lang:master Feb 24, 2024
@rustbot rustbot added this to the 1.78.0 milestone Feb 24, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Feb 24, 2024
Rollup merge of rust-lang#121531 - saethlin:ignore-less-debug, r=compiler-errors

Ignore less tests in debug builds

Since rust-lang#120594 and rust-lang#120863, nearly all UB-detecting debug assertions get compiled out of code that is monomorphized by a crate built with debug assertions disabled.

Which means that if we default all our codegen tests to `-Cdebug-assertions=no`, most of them work just fine against a sysroot built with debug assertions.

I also tried to explain a bit better why some tests need to be skipped, for those that still need to be skipped.
@saethlin saethlin deleted the ignore-less-debug branch February 24, 2024 23:15
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Mar 23, 2024
…=Mark-Simulacrum

Enable more mir-opt tests in debug builds

This is rust-lang#121531 but for the mir-opt test suite.
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Mar 23, 2024
…=Mark-Simulacrum

Enable more mir-opt tests in debug builds

This is rust-lang#121531 but for the mir-opt test suite.
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Mar 23, 2024
…=Mark-Simulacrum

Enable more mir-opt tests in debug builds

This is rust-lang#121531 but for the mir-opt test suite.
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Mar 23, 2024
Rollup merge of rust-lang#122921 - saethlin:mir-opt-tests-in-debug, r=Mark-Simulacrum

Enable more mir-opt tests in debug builds

This is rust-lang#121531 but for the mir-opt test suite.
github-actions bot pushed a commit to rust-lang/miri that referenced this pull request Mar 24, 2024
…ulacrum

Enable more mir-opt tests in debug builds

This is rust-lang/rust#121531 but for the mir-opt test suite.
RenjiSann pushed a commit to RenjiSann/rust that referenced this pull request Mar 25, 2024
…=Mark-Simulacrum

Enable more mir-opt tests in debug builds

This is rust-lang#121531 but for the mir-opt test suite.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants